<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>loading动画</title>
	<style type="text/css">
		.box{
			width: 300px;
			height: 120px;
			border: 1px solid #000;
			margin: 200px auto 0;
		}

		.box p{
			text-align: center;
			width: 100%;
			float: left;
			margin: 0;
			padding: 0;
		}

		.box div{
			width: 30px;
			height: 70px;
			float: left;
			background-color: gold;
			margin: 15px;
			border-radius: 10px;
		}


		.box div:nth-child(1){
			background-color: red;
			animation: loading 500ms ease 0s infinite alternate;
			text-align: center;
			line-height: 70px;
		}

		.box div:nth-child(2){
			background-color: green;
			animation: loading 500ms ease 100ms infinite alternate;
			text-align: center;
			line-height: 70px;
		}
		.box div:nth-child(3){
			background-color: pink;
			animation: loading 500ms ease 200ms infinite alternate;
			text-align: center;
			line-height: 70px;
		}
		.box div:nth-child(4){
			background-color: cyan;
			animation: loading 500ms ease 300ms infinite alternate;
			text-align: center;
			line-height: 70px;
		}
		.box div:nth-child(5){
			background-color: greenyellow;
			animation: loading 500ms ease 400ms infinite alternate;
			text-align: center;
			line-height: 70px;
		}

		@keyframes loading{
			from{
				transform:scaleY(1);
			}

			to{
				transform:scaleY(0.5);
			}
		}
	</style>
</head>
<body>
	<div class="box">
		<div>mysql</div>
		<div>python</div>
		<div>html</div>
		<div>javascript</div>
		<div>css</div>
		<p>loding...</p>
	</div>
</body>
</html>